package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZY.Wang
 * @since 2023/6/29
 */
@Data
@Table("shequ.sqfw_copy_record")
@Comment("抄送消息")
@ApiModel(description = "抄送消息")
public class Sqfw_copyRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("sqfw_id")
    @Comment("服务id")
    @ApiModelProperty(description = "服务id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String sqfwId;

    @Column("copy_user_id")
    @Comment("操作人")
    @ApiModelProperty(description = "用户id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String copyUserid;


    @Column("to_user_id")
    @Comment("抄送人")
    @ApiModelProperty(description = "抄送人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String toUserId;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date createDate;

    @Column("update_date")
    @Comment("更新时间")
    @ApiModelProperty(description = "更新时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date updateDate;

    @Column("update_by")
    @Comment("修改人")
    @ApiModelProperty(description = "修改人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String updateBy;

    @Column("copy_remark")
    @Comment("抄送的备注")
    @ApiModelProperty(description = "抄送的备注")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String copyRemark;

    @Column("remark")
    @Comment("备注")
    @ApiModelProperty(description = "备注")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String remark;

    @Column("read_flag")
    @Comment("是否已经阅读")
    @ApiModelProperty(description = "是否已经阅读")
    @ColDefine(type = ColType.BOOLEAN, width = 1)
    private Boolean readFlag;

    @Column("del_flag")
    @Comment("删除标志")
    @ApiModelProperty(description = "删除标志")
    @ColDefine(type = ColType.BOOLEAN, width = 1)
    private Boolean delFlag;
}
